notebook: inform the theme to draw borders when requested
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Fri, 4 Oct 2013 22:01:31 +0000 (18:01 -0400)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Fri, 4 Oct 2013 22:14:25 +0000 (18:14 -0400)
When the show-border property is TRUE ask the theme to draw
borders on the notebook header.

gtk/gtknotebook.c

index 0f113c4cc0bbb9af6ce746ee70546b5976b39a7e..f958d8229b7829c9773ddd30a0882b0cf7c36901 100644 (file)
@@ -5240,6 +5240,8 @@ gtk_notebook_paint (GtkWidget    *widget,
     }
 
   gtk_style_context_add_class (context, GTK_STYLE_CLASS_HEADER);
+  if (priv->show_border)
+    gtk_style_context_add_class (context, GTK_STYLE_CLASS_FRAME);
   gtk_render_background (context, cr,
                          header_x, header_y, header_width, header_height);
   gtk_render_frame (context, cr,